import request from '@/utils/request'

// 查询民主党派成员列表
export function listDemocratic(query) {
  return request({
    url: '/object/democratic/list',
    method: 'get',
    params: query
  })
}

// 查询民主党派成员详细
export function getDemocratic(id) {
  return request({
    url: '/object/democratic/' + id,
    method: 'get'
  })
}

// 新增民主党派成员
export function addDemocratic(data) {
  return request({
    url: '/object/democratic',
    method: 'post',
    data: data
  })
}

// 修改民主党派成员
export function updateDemocratic(data) {
  return request({
    url: '/object/democratic',
    method: 'put',
    data: data
  })
}

// 删除民主党派成员
export function delDemocratic(id) {
  return request({
    url: '/object/democratic/' + id,
    method: 'delete'
  })
}
